package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_ema_zkz database table.
 * 
 */
@Entity
@Table(name="per_ema_zkz")
@NamedQuery(name="PerEmaZkz.findAll", query="SELECT p FROM PerEmaZkz p")
public class PerEmaZkz implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int zkzid;

	private String zkzrem;

	//bi-directional many-to-one association to PerEmaDa
	@OneToMany(mappedBy="perEmaZkz")
	private List<PerEmaDa> perEmaDas;

	//bi-directional many-to-one association to PerEmaFeb
	@OneToMany(mappedBy="perEmaZkz")
	private List<PerEmaFeb> perEmaFebs;

	public PerEmaZkz() {
	}

	public int getZkzid() {
		return this.zkzid;
	}

	public void setZkzid(int zkzid) {
		this.zkzid = zkzid;
	}

	public String getZkzrem() {
		return this.zkzrem;
	}

	public void setZkzrem(String zkzrem) {
		this.zkzrem = zkzrem;
	}

	public List<PerEmaDa> getPerEmaDas() {
		return this.perEmaDas;
	}

	public void setPerEmaDas(List<PerEmaDa> perEmaDas) {
		this.perEmaDas = perEmaDas;
	}

	public PerEmaDa addPerEmaDa(PerEmaDa perEmaDa) {
		getPerEmaDas().add(perEmaDa);
		perEmaDa.setPerEmaZkz(this);

		return perEmaDa;
	}

	public PerEmaDa removePerEmaDa(PerEmaDa perEmaDa) {
		getPerEmaDas().remove(perEmaDa);
		perEmaDa.setPerEmaZkz(null);

		return perEmaDa;
	}

	public List<PerEmaFeb> getPerEmaFebs() {
		return this.perEmaFebs;
	}

	public void setPerEmaFebs(List<PerEmaFeb> perEmaFebs) {
		this.perEmaFebs = perEmaFebs;
	}

	public PerEmaFeb addPerEmaFeb(PerEmaFeb perEmaFeb) {
		getPerEmaFebs().add(perEmaFeb);
		perEmaFeb.setPerEmaZkz(this);

		return perEmaFeb;
	}

	public PerEmaFeb removePerEmaFeb(PerEmaFeb perEmaFeb) {
		getPerEmaFebs().remove(perEmaFeb);
		perEmaFeb.setPerEmaZkz(null);

		return perEmaFeb;
	}

}